package com.dg11185.nearshop.net.response;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * 可激活检测的返回
 * 
 * @author LWL_Private
 * @date 2014-05-22
 */
public class ActiveResponse {
	public static final String SUCCESS = "SUCCESS";// 可激活
	public static final String FAILE = "FAILE";// 手机号不可用
	public static final String ILLEGAL_PAR = "ILLEGAL_PAR";// 参数异常
	public static final String CARD_NOTFOUND = "CARD_NOTFOUND";// 卡号不存在
	public static final String CARD_ILLEGALPWD = "CARD_ILLEGALPWD";// 卡密错误
	public static final String ILLEGAL_VC = "ILLEGAL_VC";// 发送短信失败
	public static final String EXCEPTION = "EXCEPTION";// WS调用失败
	public static final String ILLEGAL_SIGN = "ILLEGAL_SIGN";// 签名无效

	public String status;
	public String responseStr;

	public void parseJson(String response) throws JSONException {
		this.responseStr = response;
		JSONObject jsonObject = new JSONObject(response);
		status = jsonObject.getString("status");
	}

}
